import Cookies from "js-cookie";

const TokenKey = "token";
/**
 * 获取 Token
 * @returns
 */
export function getToken() {
  return Cookies.get(TokenKey);
}
/**
 * 设置 Token
 * @param {*} token
 * @returns
 */
export function setToken(token) {
  return Cookies.set(TokenKey, token);
}
/**
 * 删除 Token
 * @returns
 */
export function removeToken() {
  return Cookies.remove(TokenKey);
}
